package holdObject;

import java.util.Random;
import java.util.Set;
import java.util.TreeSet;

public class SortedSetOfInteger {

	public static void main(String[] args) {

		Random random = new Random();
		
		Set<Integer> intSet = new TreeSet<>();
		
		for (int i = 0; i < 1000; i++) {
			intSet.add(random.nextInt(30));
		}
		
		System.out.println(intSet);
	}

}
